package com.caesar.method_fa;

/**
 * @author caesar
 * @date 2025/7/7
 * @Description:
 * @apiNote
 */
public class ElectronicDevice {
    private String brand;//品牌
    private String model;//型号

    public ElectronicDevice() {
    }

    public ElectronicDevice(String brand, String model) {
        this.brand = brand;
        this.model = model;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public void powerOn() {
        System.out.println("正在开机...");
    }

    public void powerOff() {
        System.out.println("正在关机...");
    }

    @Override
    public String toString() {
        return "品牌（" + brand +"），型号（" + model+"）";
    }
}
